package com.jianghu.helpers;

import com.jianghu.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class ViewCache {

	private View baseView;
	private TextView UserNameView;
	private TextView TimesView;
	private TextView CommentsView;
	private ImageView imageView;

	public ViewCache(View baseView) {
		this.baseView = baseView;
	}

	public TextView getCommentsView() {
		if (CommentsView == null) {
			CommentsView = (TextView) baseView.findViewById(R.id.CommentsofFriendsTrends);
		}
		return CommentsView;
	}

	public TextView getTimesView() {
		if (TimesView == null) {
			TimesView = (TextView) baseView.findViewById(R.id.timeofFriendstrends);
		}
		return TimesView;
	}

	public TextView getUserNameView() {
		if (UserNameView == null) {
			UserNameView = (TextView) baseView.findViewById(R.id.UserNameofFriendsTrends);
		}
		return UserNameView;
	}

	public ImageView getImageView() {
		if (imageView == null) {
			imageView = (ImageView) baseView.findViewById(R.id.usericonoffriends);
		}
		return imageView;
	}

}
